import request from '@/utils/request'


// 查询组List(分页)
export const GroupLists = data => {
  return request({
    url: "/JwtAPI/Group/GroupLists",
    method: 'post',
    data
  })
}




// 查询组全部数据
export const GroupAllLists = data => {
  return request({
    url: "/JwtAPI/Group/GroupAllLists",
    method: 'post',
    data
  })
}



//提交数据
export const SubmitGroupData = data => {
  return request({
    url: "/JwtAPI/Group/SubmitGroupData",
    method: 'post',
    data
  })
}
// 查询默认产品系列全部数据
export const AppSeriesAllLists = data => {
  return request({
    url: "/JwtAPI/Group/AppSeriesAllLists",
    method: 'post',
    data
  })
}

// 根据组ID查询组详情
export const Groups = data => {
  return request({
    url: "/JwtAPI/Group/Groups",
    method: 'post',
    data
  })
}

// 批量启用或禁用组
export const DisabledGroup = data => {
  return request({
    url: "/JwtAPI/Group/DisabledGroup",
    method: 'post',
    data
  })
}



// 根据组ID查对应产品系列的角色
export const GroupAppSeriesByAllRoleLists = data => {
  return request({
    url: "/JwtAPI/Group/GroupAppSeriesByAllRoleLists",
    method: 'post',
    data
  })
}

// 获取当前登录用户所拥有的角色
export const GetUserRoleListAsync = data => {
  return request({
    url: "/JwtAPI/UserAsync/GetUserRoleListAsync",
    method: 'post',
    data
  })
}

